package com.king.mvpdemo.newfragment.contract;

import com.king.mvpdemo.base.BaseView;
import com.king.mvpdemo.newfragment.bean.ListBean;

import io.reactivex.Flowable;

/**
 * @Author King
 * @Date 2019/8/8 14:40
 */
public interface NewsContract {
    interface Model {
        public Flowable<ListBean> getDate(String type, String key);
    }

    interface View extends BaseView {

        @Override
        void showLoading();

        @Override
        void hideLoading();

        @Override
        void onError(Throwable throwable);

        void onSuccess(ListBean bean);
    }

    interface Presenter {
        void getDate(String type,String key);
    }
}
